pygrub/GrubConf: fix boot problem for fedora 19 grub.cfg (2nd attempt)
authorMarcel J.E. Mol <marcel@mesa.nl>
Mon, 24 Jun 2013 16:21:32 +0000 (18:21 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 27 Jun 2013 11:07:02 +0000 (12:07 +0100)
commitd513814db6af2b298b8776d7ffc5fb1261e176f4
tree8fccad1120195f38be0a4859ccf4c5d759eae369
parent543a2657182dbb9237d1feeb1d3193096ab2cb2d
pygrub/GrubConf: fix boot problem for fedora 19 grub.cfg (2nd attempt)

Booting a fedora 19 domU failed because a it could not properly
parse the grub.cfg file. This was cased by

set default="${next_entry}"

This statement actually is within an 'if' statement, so maybe it would
be better to skip code within if/fi blocks...
But this patch seems to work fine.

Signed-off-by: Marcel Mol <marcel@mesa.nl>
Acked-by: Ian Campbell <ian.campbell@citix.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/pygrub/src/GrubConf.py